package com.serene.authority.admin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.serene.authority.admin.entity.MyRoleDept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author serene
 * @createTime 2020/8/23
 */
@Mapper
public interface RoleDeptMapper extends BaseMapper<MyRoleDept> {

    /**
     * 新建角色与部门的联系
     *
     * @param roleId      角色id
     * @param deptIds 部门id List
     */
    void save(@Param("roleId") Integer roleId, @Param("deptIds") List<Integer> deptIds);

}
